home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Hockey - The Greatest Player Resource
/
Know Your Hockey: The Greatest Player Resource.iso
/
hockey
/
director
/
ssqcst.cst
/
00049_Script_DisplayText
< prev
next >
Wrap
Text File
|
1998-09-28
|
2KB
|
50 lines
global gTheBench, gXcast,gTxtonDeck
on mousedown
set gTxtonDeck = [] -- clear the current list of txt cards
puppetsprite 42,1
set current = the name of member (the membernum of sprite 7) of castlib gXCast -- see which card is currently on screen
set templist = getaprop(gTheBench,#Card)-- get the current card list
set which = getpos(templist,current) -- find which position the card card is from
if which = 0 then exit-- this happens if the user double clicks too quickly and the computer is slow will read the textback name
set textlist =getaprop (gTheBench,#Text)-- get the available text files
set gTxtonDeck = getat(textlist,which)--- find the same position in the text file list & set the current txt list
set theCard =getat(gTxtonDeck ,1)-- find the first txt card
-- place the fabulous txt card on the screen
set the membernum of sprite 7 = the number of member theCard
--- put the buttons in place and attach scripts
set t = count (gTxtonDeck)
if T > 1 then
repeat with x = 9 to 10
puppetsprite x, 1
set the type of sprite x = 16
set the loch of sprite x = the loch of sprite 7
set the locv of sprite x = the locv of sprite 7
set the ink of sprite x = 32
set the blend of sprite x = 0
set the visible of sprite x = 1
set the ink of sprite x = 32
end repeat
set the membernum of sprite 9 = 0
set the membernum of sprite 10 = the number of member "TextDown" of castlib "SSQCST"
end if
set D = the number of member "Scrolldown" of castlib "SSQCST"
set p2 = the number of member "Textdown" of castlib "SSQCST"
set the scriptText of member p2= the scriptText of member D
set p = the number of member "Showcard" of castlib "SSQCST"
set t = the number of member "HideText" of castlib "SSQCST"
set the membernum of sprite 43 = p
set the scriptText of member p = the scriptText of member t
-- change the detail button to match the back of the card
set the membernum of sprite 40 = the number of member "Detailsb" of castlib "SSQCST"
set the scriptText of member "Detailsb" of castlib "SSQCST" =¼
The scriptText of member (the number of member "DetailScript" of castlib "SSQCST")
end